//
//  HomeMainAction.h
//
//
//  Created by gynjobs on 2017/8/14.
//  Copyright © 2017年 gynjobs. All rights reserved.
//

#import "BaseAction.h"
#import "ClientApi.h"

@class HomeMainAction;


@protocol HomeMainDelegate <NSObject>


@end
@interface HomeMainAction : BaseAction
@property (nonatomic,weak) id<HomeMainDelegate> mainDelegate;
@property (nonatomic,strong)NSMutableArray * dataArray;
@property (nonatomic,weak) UICollectionView * collectionView;
@property(strong,nonatomic)UICollectionView * tableView;;
/**
 *  左右滑动之后刷新底部申请成功信息
 */
@property (nonatomic,copy)void(^refreshApplySuccessBlock)(NSString * applySuccessInfo);

-(void)start;
+(id)getLoanMetaData;
+(id)getLoanMetaImageData;
+(id)getMetaCollectionImageData;


//network


-(void)navLoanController:(id)nav withIndex:(NSInteger) index;
-(void)navCreditController:(id) nav withIndex:(NSInteger) index;

-(NSInteger)getCreditCardRowCount;
-(id)getCreditCardData;
-(void)startGetCreditCardData;

+ (NSArray *)getMainTopViewData;

- (NSString *)getApplicationSuccessInfoWithIndex:(NSUInteger )index;





@end
